package com.abu.ums.api;

import com.abu.ums.pojo.Member;
import com.abu.utils.R;
import org.springframework.web.bind.annotation.*;

public interface UmsApi {

    @PostMapping("/ums/member/login")
    Member login(@RequestParam("nickname") String nickname, @RequestParam("password") String password);

    @GetMapping("/ums/member/queryonebyid/{openId}")
    Member getMember(@PathVariable("openId") String openId);

    @PostMapping("/ums/member/save")
    R saveMember(@RequestBody Member member);

}
